$strFormat = Date.Convert ("<date>", "<source format>", "<target format>")
Formats the given date expression according to the specified format.
Parameters
<date> Any valid date expression.
<source format> The format of the given date. Separators are optional. Valid separators are ".", "/", " " and "-".
<target format> The format into which the given date is to be converted.
Return Value
Returns the formatted date.
Remarks
Example
//Japan style
$today = Date.Convert($date, "DDMMYYYY", "YYYYMMDD")